package commonUtils.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class Comment {
    private Long id;
    @TableField(value = "user_id" )
    private Long userId;
    @TableField(value = "user_name" )        //评论者昵称
    private String username;
    @TableField(value = "user_photo" )      //评论者头像
    private String userPhoto;

    @TableField(value = "blog_id" )         //评论博客的id
    private Long blogId;

    private String context;                 //评论内容

    @TableField(value = "create_time" )     //评论创建时间
    private LocalDateTime createTime;

}
